#!/bin/bash
# automatically remote login
# 172.16.112.130 besh
# 172.16.9.72 fesh
# 47.102.124.89 hongren

case "$1" in
	besh)
		sshpass -f /home/witt/bak/shell/shpw sftp tdf@besh
		;;
	besh2)
		sshpass -f /home/witt/bak/shell/shpw sftp kingbase@besh
                ;;
        besh3)
                sshpass -f /home/witt/bak/shell/shpw2 sftp root@besh
                ;;
	fesh)
		sshpass -f /home/witt/bak/shell/shpw sftp root@fesh
		;;
	fse)
		sftp -i ~/bak/sshkey/thermoops-FSE-UAT-For-Guide thermoops@fse
		;;
	hongren)
		sshpass -f /home/witt/bak/shell/shpw-hr sftp root@47.102.124.89
		;;
	*)
		echo "Usage: sftpa {besh | besh2 | besh3 | fesh | fse | hongren}"
		exit 1
		;;
esac
